package com.olddriver.crm.service;

import com.olddriver.crm.domain.Mechanism;
import com.olddriver.crm.page.PageResult;
import com.olddriver.crm.query.MechanismQueryObject;
import com.olddriver.crm.query.QueryObject;

import java.util.List;

/**
 * Created by 季节 on 2017/12/4
 */
public interface IMechanismService {
    int insert(Mechanism record);

    Mechanism selectByPrimaryKey(Long id);

    List<Mechanism> selectAll();

    int updateByPrimaryKey(Mechanism record);

    PageResult query(MechanismQueryObject qo);

    void changeState(Long id);
}
